/* 
 * File:   ray.h
 * Author: chaterolas
 *
 * Created on 24 de junio de 2009, 06:06 PM
 */

#ifndef _RAY_H
#define	_RAY_H

#include "vector3d.h"

class Ray {
public:
    Ray(const Vector3D &orig, const Vector3D &dir);
    Ray(double ox = 0.0, double oy = 0.0, double oz = 0.0,
        double dx = 0.0, double dy = 0.0, double dz = 0.0);
    virtual ~Ray();

    void setOrigin(const Vector3D &v);
    void setDirection(const Vector3D &v);
    Vector3D *getOrigin();
    Vector3D *getDirection();

private:
    Vector3D *orig;
    Vector3D *dir;

};

#endif	/* _RAY_H */

